const express = require('express')
const router = express.Router()
const authApi = require('../controller/auth')

router.post('/token', authApi.getAccessToken)

router.delete('/token', authApi.destroyAccessToken)

router.post('/authorization/code', authApi.generateAuthorizationCode)

router.post('/authorization/token', authApi.generateTokens)

router.patch('/authorization/token', authApi.refreshAccessToken)

module.exports = router
